from django.http import HttpResponse
from django.shortcuts import render

from book.models import BookInfo


def create_book(req):
    books = BookInfo.objects.create(
        name='adc',
        pub_date='2020-01-01',
        read_count=0
    )
    return HttpResponse('index')


def shop(req, city_id, shop_id):
    q = req.GET.get('order')
    print(q)
    return HttpResponse(city_id + shop_id)


def register(req):
    return HttpResponse('ok')
